<h2>Gestion des thèmes</h2>

<table class="row-fluid table table-hover">
	
	<tbody>
		<?php
		
			$themes= listeThemes();

			foreach($themes as $theme)
			{
				$nom=nomtheme($theme);
				
				if($nom!="Autre"){
					
					echo "<tr id_theme='" . $theme . "' nom_theme='".$nom."'>";
					echo "<td>".$nom."</td>";
					echo "<td>";
						echo "<img class='editerTheme' src='./image/charte/imgModifierVideo.png' alt='modifier le thème?'  />";
						echo "<img class='supprimerTheme' src='./image/charte/imgSupprimerVideo.png' alt='suprimer le thème?'/>";
					echo "</td>";
					echo "</tr>";
				
				}//fin if
			}
		?>
	</tbody>
	<thead>
		<tr>
			<th>Thème</th>
			<th>Opérations</th>
		</tr>
	</thead>
</table>

<div class="row-fluid">
	<div class="span2">
		<a href="./edit_theme.php" class="btn btn-primary ">Ajouter un thème</a>
	</div>
</div>

<script src="./javascript/gestion_theme.js" type="text/javascript"></script>
